<?php
$this->breadcrumbs = array(
	UserModule::t('Мой аккаунт') => array('/user/profile'),
	UserModule::t('Изменение пароля'),
);
?>

<h1><?php echo UserModule::t('Изменение пароля'); ?></h1>

<?php $form = $this->beginWidget('GxActiveForm', 
	array(
		'id' => 'profile-password-form',
		'enableAjaxValidation' => false,
		'htmlOptions'=>array(
			'class'=>'form-horizontal',
		),
	)
);
?>

<div class="control-group"><p class="note"><?php echo Yii::t('app', 'Поля'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'обязательные'); ?>.</p></div>

<div class="control-group">
	<?php echo $form->labelEx($model,'oldPassword',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->passwordField($model, 'oldPassword', array('maxlength' => 255,'placeholder'=>UserModule::t('Старый пароль'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'oldPassword'); ?></span>
	</div>
</div>
<div class="control-group">
	<?php echo $form->labelEx($model,'newPassword',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->passwordField($model, 'newPassword', array('maxlength' => 255,'placeholder'=>UserModule::t('Новый пароль'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'newPassword'); ?></span>
	</div>
</div>
<div class="control-group">
	<?php echo $form->labelEx($model,'verifyPassword',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->passwordField($model, 'verifyPassword', array('maxlength' => 255,'placeholder'=>UserModule::t('Новый пароль еще раз'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'verifyPassword'); ?></span>
	</div>
</div>
<div class="control-group">
	<div class="controls">
		<?php echo GxHtml::submitButton(UserModule::t('Изменить пароль'), array('class'=>'btn')); ?>
	</div>
</div>

<?php $this->endWidget(); ?>
<!-- form -->